<div class="grid_3 alpha"><input id="create" value="Crear Moneda" type="button" onclick="window.location = '/monies/edit/0';"/></div>
<div class="grid_6 omega" style="text-align:right;">
    <?php echo $paginator->prev()." ["; ?>
    <?php echo $paginator->numbers(); ?>
    <?php echo "] ".$paginator->next(); ?>
    <?php echo "&nbsp;&nbsp;[".$paginator->counter()."]"; ?>
</div>
<div class="clear"></div>


<?php echo $this->Form->create('Monies', array(
										'url'           => array('controller' => 'monies', 'action' => 'delete'),
										'inputDefaults' => array('label' => false, 'div' => false)
										)
								); ?>
    <br />
    <table width="100%">
        <thead>
            <tr>
                <th width="30">Select</th>
                <th width="20"><?php echo $this->Paginator->sort('id');?></th>
                <th><?php echo $this->Paginator->sort('name');?></th>
                <th>Símbolo</th>
            </tr>
        </thead>
        <tbody>
        
    	<?php $i = 0;
    	foreach ($monies as $money):
    		$class = null;
    		if ($i++ % 2 == 0) { $class = ' class="altrow"'; }
    	?>
            <tr>
                <td><input name="data[Delete][<?php echo $money['Money']['id'];?>]" value="1" id="Delete<?php echo $money['Money']['id'];?>" type="checkbox"/></td>
                <td><?php echo $money['Money']['id']; ?>&nbsp;</td>
                <td>
                    <?php echo $this->Html->link($money['Money']['name'],
                                array('controller' => 'monies', 'action' => 'edit/'.$money['Money']['id'])); ?> 
                </td>     
                <td>
					<?php echo $money['Money']['simbolo'];?>
                </td>                           
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
    
	<br />    
	<div class="clear"></div>

	<div class="grid_3 alpha">
		<input name="delete" id="delete" value="Eliminar Seleccionados" type="submit" onclick="return confirm('Est&aacute; seguro de eliminar esos registros?');"/>
	</div>
	<div class="grid_6 omega" style="text-align:right;">
		<?php echo $paginator->prev()." ["; ?>
		<?php echo $paginator->numbers(); ?>
		<?php echo "] ".$paginator->next(); ?>
		<?php echo "&nbsp;&nbsp;[".$paginator->counter()."]"; ?>
	</div>
	<div class="clear"></div>
	<br />
	<div class="grid_3 alpha"><input id="create" value="Crear Moneda" type="button" onclick="window.location = '/monies/edit/0';"/></div>
	<div class="clear"></div>
    
</form>